import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import ElementPlus from 'element-plus'
//引入ElementPlus样式
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn'
//引入ElementPlus中的图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import router from './router'

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.config.warnHandler = ()=>null;
app.use(router);
app.use(ElementPlus,{locale:zhCn})
app.mount('#app')
